﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace TodoApp.TMS_Contract
{
    /// <summary>
    /// 记录表-郭辉
    /// </summary>
    public class TMS_FlowRecord : BasicAggregateRoot<Guid>
    {
        /// <summary>
        /// 主键ID 
        /// </summary>
        [Column("FlowRecord_Id")]
        public override Guid Id { get => base.Id; protected set => base.Id = value; }
        /// <summary>
        /// 流程实例Id
        /// </summary>
        public string WorkId { get; set; }

        /// <summary>
        /// 当前节点编号
        /// </summary>
        [MaxLength(20)]
        public string CurrentNodeSN { get; set; }

        /// <summary>
        /// 当前节点名称
        /// </summary>
        [MaxLength(50)]
        public string CurrentNode { get; set; }

        /// <summary>
        /// 操作人Id
        /// </summary>
        public Guid OperatorId { get; set; }

        /// <summary>
        /// 操作人名称
        /// </summary>
        [MaxLength(50)]
        public string Operator { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }


        /// <summary>
        /// 是否读取
        /// </summary>
        public bool IsRead { get; set; }

        /// <summary>
        /// 是否通过
        /// </summary>
        public bool IsPass { get; set; }
    }
}
